// 导入组件
import Vue from 'vue';
import Router from 'vue-router';
// 登录
import login from '@/views/login';
// 首页
import index from '@/views/index';
/**
 * 教学基础数据管理
 */
// 课程管理
import Course from '@/views/basedata/course';
// 学生管理
import student from '@/views/basedata/student';
// 班级管理
import Class from '@/views/basedata/class';
/**
 * 考务管理
 */
// 考试科目管理
import exam from '@/views/examination/exam';
/**
 * 教材管理
 */
// 新书入库管理
import textbook from '@/views/textbook/textbook';
/**
 * 教室数据管理
 */
// 教室管理
import Classroom from '@/views/classroomdata/classroom';
/**
 * 转身本信息管理
 */
// 专升本审核
import checking from '@/views/promotion/checking';
// 数据可视化
import statistics from '@/views/promotion/statistics';



// 启用路由
Vue.use(Router);

// 导出路由 
export default new Router({
    routes: [{
        path: '/',
        name: '',
        component: login,
        hidden: true,
        meta: {
            requireAuth: false
        }
    }, {
        path: '/login',
        name: '登录',
        component: login,
        hidden: true,
        meta: {
            requireAuth: false
        }
    }, {
        path: '/index',
        name: '首页',
        component: index,
        iconCls: 'el-icon-tickets',
        children: [{
            path: '/basedata/course',
            name: '课程管理',
            component: Course,
            meta: {
                requireAuth: true
            }
        }, 
		{
		    path: '/basedata/class',
		    name: '班级管理',
		    component: Class,
		    meta: {
		        requireAuth: true
		    }
		}, 
		{
		    path: '/basedata/student',
		    name: '学生管理',
		    component: student,
		    meta: {
		        requireAuth: true
		    }
		},
        {
            path: '/classroomdata/classroom',
            name: '教室管理',
            component: Classroom,
            meta: {
                requireAuth: true
            }
        }, 
		{
            path: '/examination/exam',
            name: '考试管理',
            component: exam,
            meta: {
                requireAuth: true
            }
        }, 
		{
		    path: '/textbook/textbook',
		    name: '教材管理',
		    component: textbook,
		    meta: {
		        requireAuth: true
		    }
		}, 
		
		{
		    path: '/promotion/checking',
		    name: '专升本审核',
		    component: checking,
		    meta: {
		        requireAuth: true
		    }
		}, 
		{
		    path: '/promotion/statistics',
		    name: '数据可视化',
		    component: statistics,
		    meta: {
		        requireAuth: true
		    }
		}]
    }]
})